<!DOCTYPE html>
<html>
<head>
<#include "/freemarker/fw/meta_top.ftl">
    <title>${chapter.book.bookname} | ${chapter.title}</title>
    <#include "/freemarker/fw/load_static.ftl">
</head>
<body onload="Pinion.visit('${chapter.book.class.name}', ${chapter.book.id}); Pinion.visit('${chapter.class.name}', ${chapter.id}); ">
<#include "/freemarker/fw/navbar_top.ftl">
    <div class="container">
        <div class="main row">
            <div class="col-lg-6">
                <p><a href="/book/${chapter.book.getInt("id")}"> &lt;- ${chapter.book.bookname}</a></p>
                <div class="chapter-detail grid">
                    <h3 class="title">${chapter.title}</h3>
                    <div class="text">${chapter.text}</div>
                    <#if chapter.hasNext()>
                        <p class="text-right" style="padding-right: 20px">下一篇 <a href="/chapter/${chapter.next().id}">${chapter.next().title}</a></p>
                    </#if>
                </div>
            </div>
            <#assign comments = chapter.getComments()>
            <#assign commentTarget = chapter>
            <#include "/book/comment_area.ftl">
        </div>
    </div>
</body>
</html>